package cn.wen.yinxiu.common.lock;import lombok.AllArgsConstructor;import lombok.Getter;/** * @ClassName: YLock * @Author: 小飞 * @Date: 2023/5/22 22:13 * @Description: 锁对象抽象 */@AllArgsConstructorpublic class YLock implements AutoCloseable {    @Getter    private final Object lock;    private final DistributedLock locker;    @Override    public void close() throws Exception {        locker.unlock(lock);    }}